<template>
    <div style="padding:25px;">
       文件上传组件
       <el-row>
           <el-col :span="4">
               <el-card>
                    <upload :uploadSetting="uploadSetting"></upload>
               </el-card>
           </el-col>
       </el-row>
    </div>
</template>



<script>
    import upload from '@/components/upload/upload'
    export default{
        components:{
            upload
        },
        data(){
            return{
                //上传文件配置
                uploadSetting:{
                    action:'https://jsonplaceholder.typicode.com/posts/',//上传地址
                    limit:1,//允许上传数量
                    filtype:[,'txt','exe'],//允许上传的格式
                    fileSize:2//允许上传大小
                }
            }
        }
    }
</script>
